package yydy.pattern.structure.decorator.example;

import yydy.pattern.common.interfaces.Shape;

/**
 * @author LY
 * @description: TODO
 * @title: ShapeDecorator
 * @projectName yydy_learn
 * @date 2020/11/4
 */
public class ShapeDecorator implements Shape {

    protected Shape decoratedShape;

    public ShapeDecorator(Shape decoratedShape){
        this.decoratedShape = decoratedShape;
    }

    @Override
    public void draw() {
        decoratedShape.draw();
    }
}
